﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Core;
using System.Data;

namespace Crosland.Automotriz.Data.Dao.Linq
{
    public class clsT_Mae_BancoDAO
    {

        private readonly AutomotrizEntities ContextoDeObjs = new AutomotrizEntities();

        public IEnumerable<Object> Listar()
        {

            try
            {
                IEnumerable<Object> Lista = new List<Object>();
                var q = from c in ContextoDeObjs.T_MAE_BANCO
                        orderby c.NOM_BANCO ascending
                        select c;

                Lista = q.ToList();

                return Lista;

            }
            catch (Exception)
            {
                
                throw;
            }



        }

    }
}
